home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3signal.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.0 KB  |  89 lines

  1.  
  2. // JavaScript wrapper for r3signal.h
  3. // Auto generated file, do not modify by hand
  4. // Copyrights 2002, Realsoft Graphics Oy
  5.  
  6. var R3_SIGNAL_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_SIGNAL = 2;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Set signal's status to 'signaled'. The thread waiting for the signal
  16. //      is awakened.
  17.  
  18. R3SIGM_SET = 2000;
  19.  
  20. function mR3SIGM_SET() {
  21.   R3DoA(this.r3obj, R3SIGM_SET, 0);
  22. }
  23.  
  24. // Description: Wait signal. Note: only the thread owning the signal
  25. //      can call this. 
  26. // p3: - R3INT, time out (in msecs).
  27.  
  28. R3SIGM_WAIT = 2001;
  29.  
  30. function mR3SIGM_WAIT(p3) {
  31.   R3DoA(this.r3obj, R3SIGM_WAIT, p3);
  32. }
  33.  
  34.  
  35.  
  36.  
  37. // R3SIGA_Task: Object, a task for which the signal is to be created 
  38. R3SIGA_Task = 2500;
  39. function SetR3SIGA_Task(value) {
  40.   R3Set(this.r3obj, R3SIGA_Task, value); 
  41. }
  42.  
  43. function GetR3SIGA_Task() {
  44.   return R3Get(this.r3obj, R3SIGA_Task, R3TID_INTEGER, TRUE); // R3OBJ*
  45. }
  46.  
  47. // R3SIGA_SignalBit: Integer, a bit mask which identifies which signals have been set 
  48. R3SIGA_SignalBit = 2501;
  49. function SetR3SIGA_SignalBit(value) {
  50.   R3Set(this.r3obj, R3SIGA_SignalBit, value); 
  51. }
  52.  
  53. function GetR3SIGA_SignalBit() {
  54.   return R3Get(this.r3obj, R3SIGA_SignalBit, R3TID_INTEGER, TRUE); // R3INT
  55. }
  56.  
  57. // R3SIGA_Signalled: R3BOOT, true if signal has been set 
  58. R3SIGA_Signalled = 2502;
  59. function SetR3SIGA_Signalled(value) {
  60.   R3Set(this.r3obj, R3SIGA_Signalled, value); 
  61. }
  62.  
  63. function GetR3SIGA_Signalled() {
  64.   return R3Get(this.r3obj, R3SIGA_Signalled, R3TID_INTEGER, TRUE); // R3BOOT
  65. }
  66.  
  67. var SIGF_SET = 1;
  68.  
  69.  
  70. function r3Signal () { 
  71.    this.base = r3God;
  72.    if(arguments.length) {
  73.       this.base(R3CLID_SIGNAL, arguments);
  74.    }
  75.    // Methods
  76.    this.SET=mR3SIGM_SET;
  77.    this.WAIT=mR3SIGM_WAIT;
  78.  
  79.    // Attributes
  80.    this.GetTask=GetR3SIGA_Task;
  81.    this.SetTask=SetR3SIGA_Task;
  82.    this.GetSignalBit=GetR3SIGA_SignalBit;
  83.    this.SetSignalBit=SetR3SIGA_SignalBit;
  84.    this.GetSignalled=GetR3SIGA_Signalled;
  85.    this.SetSignalled=SetR3SIGA_Signalled;
  86. }
  87.  
  88. r3Signal.prototype=new r3Root;
  89. // r3signal.h_H